package com.appcenter.jz.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value="错误信息对象",description ="错误信息对象" )
public class ErrorJsonResult extends RuntimeException {

    public ErrorJsonResult(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

    @ApiModelProperty(value = "错误编码",example = "",required = false)
    private String code;
    public String getCode(){return this.code;}
    public void setCode(String code){
        this.code=code;
    }


    @ApiModelProperty(value = "错误信息",example = "",required = false)
    private String message;
    public String getMessage(){return this.message;}
    public void setMessage(String message){
        this.message=message;
    }

}
